{% extends "master.html" %}
{% block subtitle %} - 基础信息 - 会员管理{% endblock %}


{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpRoot.view')}}">基础信息</a></li>
          <li class="active">会员管理</li>
        </ol>
    </div>
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading"><h4 class="panel-title">输入查询条件</h4></div>
            <div class="panel-body">
                <div class="row">{{mymacros.render_search_form(form,3)}}</div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="btn-toolbar pull-right">
                            <div class="btn-group"><button type="button" class="btn btn-default" onclick="$('form').submit()">查询</button></div>
                            <div class="btn-group"><a href="{{url_for('bpMem.view',action='add')}}" class="btn btn-primary">创建会员</a></div>
                        </div>
                    </div>
                </div>
            </div>
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <td>会员编号</td>
                        <td>会员姓名</td>
                        <td>联系电话</td>
                        <td>手机</td>
                        <td>经办人</td>
                        <td>创建时间</td>
                    </tr>
                </thead>
                <tbody>
                    {% for r in result %}
                        <tr>
                            <td><a href="{{url_for('bpMem.view',action='view',id=r.id)}}">{{r.no}}</a></td>
                            <td>{{r.name}}</td>
                            <td>{{r.tel}}</td>
                            <td>{{r.mobile}}</td>
                            <td>{{r.createBy|f}}</td>
                            <td>{{r.createTime|ft}}</td>
                        </tr>
                    {% endfor %}
                <tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}